package com.bupt.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bupt.server.entity.Room;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

public interface ServiceRecordMapper extends BaseMapper<Room> {
    @Insert("insert into service_record (room_id,start_time,end_time) values (#{room_id}, #{check_in_date}, #{check_out_date});")
    int checkInInsertRecord(@Param("room_id") int room_id, @Param("check_in_date") String check_in_date, @Param("check_out_date") String check_out_date);
}
